package it.unibo.mycruise.simulation.presentation.swing;

import it.unibo.mycruise.boat.presentation.swing.DashboardView;
import it.unibo.mycruise.chief.presentation.swing.FlagDisplayView;

import java.awt.Dimension;
import java.awt.FlowLayout;

import javax.swing.JFrame;

public class SimulatorFrame extends JFrame 
{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public SimulatorFrame(SimulatorView simView, DashboardView dashView)
	{
		setTitle("Boat Simulator");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setLayout(new FlowLayout());
		setPreferredSize(new Dimension(800, 240));
		add(dashView);
		add(simView);
		pack();
		setVisible(true);
	}

}
